package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.dao.BquestionDao;
import io.renren.entity.BquestionEntity;
import io.renren.service.BquestionService;
import org.springframework.stereotype.Service;

import java.util.Map;





@Service("bquestionService")
public class BquestionServiceImpl extends ServiceImpl<BquestionDao, BquestionEntity> implements BquestionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BquestionEntity> page = this.page(
                new Query<BquestionEntity>().getPage(params),
                new QueryWrapper<BquestionEntity>()
        );

        return new PageUtils(page);
    }

}